package gs.android.einsteinballoons;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
	private Button arcade, math, help, highscore, credits;
	private Typeface tf;
	
	@Override
	public void onCreate(Bundle savedInstance) {
		super.onCreate(savedInstance);
		setContentView(R.layout.main);
		
		tf = Typeface.createFromAsset(getAssets(), "comic.ttf");
		
		arcade = (Button) findViewById(R.id.btnArcade);
		arcade.setTypeface(tf);
		arcade.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(v.getContext(), EinsteinBalloonsActivity.class);
				intent.putExtra("mode", Mode.ARCADE.toString());
				startActivity(intent);
			}
		});
		
		math = (Button) findViewById(R.id.btnMath);
		math.setTypeface(tf);
		math.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(v.getContext(), TableActivity.class);
				startActivity(intent);
			}
		});
		
		help = (Button) findViewById(R.id.btnHelp);
		help.setTypeface(tf);
		help.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				//Intent intent = new Intent(v.getContext(), HelpActivity.class);
				//startActivity(intent);
			}
		});
		
		highscore = (Button) findViewById(R.id.btnHighscore);
		highscore.setTypeface(tf);
		highscore.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				//Intent intent = new Intent(v.getContext(), HighscoreActivity.class);
				//startActivity(intent);
			}
		});
		
		credits = (Button) findViewById(R.id.btnCredits);
		credits.setTypeface(tf);
		credits.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				//Intent intent = new Intent(v.getContext(), CreditsActivity.class);
				//startActivity(intent);
			}
		});
	}
}
